﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ReklamaWPF.Grids;
using System.Data;

namespace ReklamaWPF.Grids
{
    /// <summary>
    /// Interaction logic for TableGrid.xaml
    /// </summary>
    public partial class TableGrid : UserControl
    {
        public TableGrid()
        {
            InitializeComponent();
            TableGridControl.View.ShowGroupPanel = false;
            datePicker1.DisplayDate = DateTime.Now;
            datePicker1.Text = DateTime.Now.ToShortDateString();
        }

        public void LoadData(DevExpress.Xpf.PivotGrid.PivotGridControl pv)
        {
            DataTable tb = (DataTable)pv.DataSource;
            for (int i = 0; i < tb.Rows.Count;i++ )
            {
                string blockName = tb.Rows[i]["Block_Name"].ToString();
            }
        }

        public void ExportData()
        {
        }
    }
}
